home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3cube.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.4 KB  |  137 lines

  1.  
  2. // JavaScript wrapper for r3cube.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_CUBE_H = 1;
  7. include("oops/r3vector.js")
  8. include("real/objects/r3prim.js")
  9.  
  10.  
  11. var R3CLID_CUBE = 152;
  12.  
  13.  
  14.  
  15.  
  16. R3CUBEA_P0 = 152501;
  17. function SetR3CUBEA_P0(value) {
  18.   R3Set(this.r3obj, R3CUBEA_P0, value, R3TID_VECTOR, 0); 
  19. }
  20.  
  21. function GetR3CUBEA_P0() {
  22.   return R3Get(this.r3obj, R3CUBEA_P0, R3TID_VECTOR, 0); 
  23. }
  24.  
  25. R3CUBEA_P1 = 152502;
  26. function SetR3CUBEA_P1(value) {
  27.   R3Set(this.r3obj, R3CUBEA_P1, value, R3TID_VECTOR, 0); 
  28. }
  29.  
  30. function GetR3CUBEA_P1() {
  31.   return R3Get(this.r3obj, R3CUBEA_P1, R3TID_VECTOR, 0); 
  32. }
  33.  
  34. R3CUBEA_P2 = 152503;
  35. function SetR3CUBEA_P2(value) {
  36.   R3Set(this.r3obj, R3CUBEA_P2, value, R3TID_VECTOR, 0); 
  37. }
  38.  
  39. function GetR3CUBEA_P2() {
  40.   return R3Get(this.r3obj, R3CUBEA_P2, R3TID_VECTOR, 0); 
  41. }
  42.  
  43. R3CUBEA_P3 = 152504;
  44. function SetR3CUBEA_P3(value) {
  45.   R3Set(this.r3obj, R3CUBEA_P3, value, R3TID_VECTOR, 0); 
  46. }
  47.  
  48. function GetR3CUBEA_P3() {
  49.   return R3Get(this.r3obj, R3CUBEA_P3, R3TID_VECTOR, 0); 
  50. }
  51.  
  52. R3CUBEA_Width = 152505;
  53. function SetR3CUBEA_Width(value) {
  54.   R3Set(this.r3obj, R3CUBEA_Width, value, R3TID_FLOAT, 0); 
  55. }
  56.  
  57. function GetR3CUBEA_Width() {
  58.   return R3Get(this.r3obj, R3CUBEA_Width, R3TID_FLOAT, 0); 
  59. }
  60.  
  61. R3CUBEA_Height = 152506;
  62. function SetR3CUBEA_Height(value) {
  63.   R3Set(this.r3obj, R3CUBEA_Height, value, R3TID_FLOAT, 0); 
  64. }
  65.  
  66. function GetR3CUBEA_Height() {
  67.   return R3Get(this.r3obj, R3CUBEA_Height, R3TID_FLOAT, 0); 
  68. }
  69.  
  70. R3CUBEA_Depth = 152507;
  71. function SetR3CUBEA_Depth(value) {
  72.   R3Set(this.r3obj, R3CUBEA_Depth, value, R3TID_FLOAT, 0); 
  73. }
  74.  
  75. function GetR3CUBEA_Depth() {
  76.   return R3Get(this.r3obj, R3CUBEA_Depth, R3TID_FLOAT, 0); 
  77. }
  78.  
  79. R3CUBEA_Infinite = 152508;
  80. function SetR3CUBEA_Infinite(value) {
  81.   R3Set(this.r3obj, R3CUBEA_Infinite, value, R3TID_INTEGER, 0); 
  82. }
  83.  
  84. function GetR3CUBEA_Infinite() {
  85.   return R3Get(this.r3obj, R3CUBEA_Infinite, R3TID_INTEGER, 0); 
  86. }
  87.  
  88. R3CUBEA_Uncovered1 = 152509;
  89. function SetR3CUBEA_Uncovered1(value) {
  90.   R3Set(this.r3obj, R3CUBEA_Uncovered1, value, R3TID_INTEGER, 0); 
  91. }
  92.  
  93. function GetR3CUBEA_Uncovered1() {
  94.   return R3Get(this.r3obj, R3CUBEA_Uncovered1, R3TID_INTEGER, 0); 
  95. }
  96.  
  97. R3CUBEA_Uncovered2 = 152510;
  98. function SetR3CUBEA_Uncovered2(value) {
  99.   R3Set(this.r3obj, R3CUBEA_Uncovered2, value, R3TID_INTEGER, 0); 
  100. }
  101.  
  102. function GetR3CUBEA_Uncovered2() {
  103.   return R3Get(this.r3obj, R3CUBEA_Uncovered2, R3TID_INTEGER, 0); 
  104. }
  105.  
  106.  
  107.  
  108. function r3Cube () { 
  109.    this.base = r3God;
  110.    if(arguments.length) {
  111.       this.base(R3CLID_CUBE, arguments);
  112.    }
  113.    // Attributes
  114.    this.GetP0=GetR3CUBEA_P0;
  115.    this.SetP0=SetR3CUBEA_P0;
  116.    this.GetP1=GetR3CUBEA_P1;
  117.    this.SetP1=SetR3CUBEA_P1;
  118.    this.GetP2=GetR3CUBEA_P2;
  119.    this.SetP2=SetR3CUBEA_P2;
  120.    this.GetP3=GetR3CUBEA_P3;
  121.    this.SetP3=SetR3CUBEA_P3;
  122.    this.GetWidth=GetR3CUBEA_Width;
  123.    this.SetWidth=SetR3CUBEA_Width;
  124.    this.GetHeight=GetR3CUBEA_Height;
  125.    this.SetHeight=SetR3CUBEA_Height;
  126.    this.GetDepth=GetR3CUBEA_Depth;
  127.    this.SetDepth=SetR3CUBEA_Depth;
  128.    this.GetInfinite=GetR3CUBEA_Infinite;
  129.    this.SetInfinite=SetR3CUBEA_Infinite;
  130.    this.GetUncovered1=GetR3CUBEA_Uncovered1;
  131.    this.SetUncovered1=SetR3CUBEA_Uncovered1;
  132.    this.GetUncovered2=GetR3CUBEA_Uncovered2;
  133.    this.SetUncovered2=SetR3CUBEA_Uncovered2;
  134. }
  135.  
  136. r3Cube.prototype=new r3Primitive;
  137. // r3cube.h_H